Skip to content

fix(release): stub Ink's optional devtools when compiling binaries - #214

Merged
2000game merged 1 commit into
mainfrom
fix/release-binaries-ink
Nov 11, 2026
Merged

2000game merged 1 commit into
mainfrom
fix/release-binaries-ink

Conversation

@2000game

Copy link
Copy Markdown
Member

The Release run for #212 failed at "Compile standalone binaries": Ink (used by ct dupes --tui) imports react-devtools-core from a module it only loads when DEV=true, and bun build cannot resolve it.

--external react-devtools-core is not enough (Bun hoists the import, so every binary fails at startup, even ct --version), and defining process.env.DEV does not eliminate the branch. build-binary.ts wraps the compile in Bun.build with a plugin that swaps the package for an empty stub.

Verification

Locally with Bun 1.4.0 (the version release.yml pins): build-binaries.sh compiles all three targets, smoke-test-binary.sh passes on darwin-arm64, and ct --version / ct dupes --help run from the binary.

@2000game
2000game merged commit 39f5e80 into main Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant